package com.ht;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ht.domain.HouseAddressBean;
import com.ht.domain.HouseAllInfo;
import com.ht.mapper.AddressMapper;
import com.ht.mapper.HouseAllMapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.List;

@SpringBootApplication
@MapperScan(basePackages = "com.ht.mapper")
public class HouseInformationApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(HouseInformationApplication.class, args);
        HouseAllMapper bean = run.getBean(HouseAllMapper.class);
        List<HouseAllInfo> allHouseInfo = bean.getPagesHouseInfo(2,2);
        for (HouseAllInfo houseAllInfo : allHouseInfo) {
            System.out.println(houseAllInfo);
        }

    }
}
